#include <iostream>
#include <glibmm.h>
#include <assert.h>

#include "SpawnTests.hpp"

int main()
{
  try
  {
    EGlib::SpawnTests::test_cmdline_args();
    EGlib::SpawnTests::test_piping();
    EGlib::SpawnTests::test_proc_return_val();
    EGlib::SpawnTests::test_non_existing_executable();
  }
  catch(const std::exception &err)
  {
    std::cout << err.what() << std::endl;
    assert(!"An unhandled exception has been thrown.");
  }
  catch(const Glib::Exception &err)
  {
    std::cout << err.what() << std::endl;
    assert(!"An unhandled exception has been thrown.");
  }
  catch(...)
  {
    assert(!"An unhandled exception, of an unknown type has been thrown.");
  }
  
  return 0;
}
